import request from '@/utils/request'

// 查询品牌加盟列表
export function listBrandFranchise(query) {
  return request({
    url: '/admin/brandFranchise/list',
    method: 'get',
    params: query
  })
}

// 查询品牌加盟详细
export function getBrandFranchise(id) {
  return request({
    url: '/admin/brandFranchise/' + id,
    method: 'get'
  })
}

// 新增品牌加盟
export function addBrandFranchise(data) {
  return request({
    url: '/admin/brandFranchise',
    method: 'post',
    data: data
  })
}

// 修改品牌加盟
export function updateBrandFranchise(data) {
  return request({
    url: '/admin/brandFranchise',
    method: 'put',
    data: data
  })
}

// 删除品牌加盟
export function delBrandFranchise(id) {
  return request({
    url: '/admin/brandFranchise/' + id,
    method: 'delete'
  })
}
